import '../apis/resquest/http.dart';
import '../model/bean/alarm_bean.dart';

class Alarm {
  /// 获取告警列表（首页，告警记录）
  /// * [data] Map|请求参数|必填
  static getAlarmList(Map<String, dynamic> data) async {
    const url = '/elevator-maintenance-app/alarm/queryList';
    try {
      HttpResponse _r = await Http.getInstance().post(url, params: data);
      return AlarmListBean.fromJson(_r.data);
    } catch (e) {}
  }
}
